package com.example.demo.Controller;

import com.example.demo.feignClient.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("feign")
public class FeignController {

    @Autowired
    private TestApi TestApi;

    @GetMapping("")
    public String GetService(){

        String s = TestApi.GetService();
        return s;
    }

    @GetMapping("test")
    public String GetService11(){

        String s = TestApi.GetService();
        return s;
    }

}
